package cn.bdqn.util;

import com.alibaba.druid.pool.DruidDataSource;

<<<<<<< HEAD
/**
 * 获取dataSource的工具类
 * Created by Lenovo on 2018/10/9.
 */
public class DataSourceUtil {
    private static DruidDataSource dataSource = null;
    static {
        dataSource = new DruidDataSource();
        dataSource.setDriverClassName("com.mysql.jdbc.Driver");
        dataSource.setUrl("jdbc:mysql:///tianqi?characterEncoding=utf-8");
        dataSource.setUsername("root");
        dataSource.setPassword("as2111");
    }
    public  static DruidDataSource getDataSource(){
=======
public class DataSourceUtil {

    private static DruidDataSource dataSource = null;

    static{
        dataSource = new DruidDataSource();
        dataSource.setDriverClassName("com.mysql.jdbc.Driver");
        dataSource.setUrl("jdbc:mysql:///air?characterEncoding=utf-8");
        dataSource.setUsername("root");
        dataSource.setPassword("as2111");
    }
    public static DruidDataSource getDataSource(){
>>>>>>> 8401facf80807854843aea47729c77b70fec9b79
        return dataSource;
    }
}
